package com.ash.controller.major;

import com.ash.domain.Major;
import com.ash.service.major.MajorService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.List;
/**
 * @author : Chen Chao
 * @encoding : UTF-8
 * @date : 2021/4/2 17:02
 * @file : project06.com.ash.controller.major.MajorController.java
 * @software : IntelliJ IDEA
 * @since : 1.8
 */
@Controller
public class MajorController {
    @Resource
    MajorService majorService;
    @RequestMapping("/user/majorList")
    @ResponseBody
    public List<Major> majorList(){
        return majorService.selectAll();
    }
}
